package com.csthink.mysql.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @author <a href="mailto:security.2009@live.cn">Mars</a>
 * @since 2023-09-10
 */
@Data
@TableName(value = "cst_account")
@EqualsAndHashCode(exclude = {"modifyTime", "modifyBy"})
public class Account {

    @TableId
    private String id;

    private String name;

    private String email;

    private Integer isSetup;

    private Long accountOptions;

    private Date createTime;

    private String createBy;

    private Date modifyTime;

    private String modifyBy;

    @TableField(exist = false) // 备注[数据库中无对应的字段]
    private String remark;

}
